//
// Created by Otowa_kotori on 2016/12/17.
//


#include "gtest/gtest.h"
#include "entitymanager.h"
#include "Entities/dummy.h"
#include "Game/Game.h"
#include <memory>
#include <Entities/plant.h>
#include "LogicExecutor.h"
#include <include/sdk/misc.h>
using namespace std;

/*TEST(GameLoop, MaingameLoop) {
#ifdef Windows
    LogicExecutor logicExecutor;
    for (int i = 0; i < 2; ++ i){
        logicExecutor.act[i] = make_shared<AiActMaker>("Ai/libtestExecuter.dll");
        Json::Value root;
        root["action"] = "changemode";
        root["params"].append("mirror");
        root["params"].append("../test/game/mirror_files/0_" + to_string(i + 1) + ".json");
        logicExecutor.pushInfo(i + 1, jsonToString(root));
    }
    for (int i = 0; i < 1; ++ i){
        logicExecutor.fetchCommands(1);
        logicExecutor.fetchCommands(2);
        logicExecutor.oneRoundRun();
    }
    logicExecutor.game->dumpReplay("full_gameloop");
#endif
}*/
